module.exports = {
  publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
  devServer: {
    proxy: {
      '/authorization': {
        target: 'http://122.51.224.143:8085/',
        ws: true,
        changeOrigin: true
      },
    }
  },
  pages: {
    index: {
      entry: 'src/main.js',
      template: 'public/index.html',
      filename: 'index.html',
      title: '数据授权管理系统',
      chunks: ['chunk-vendors', 'chunk-common', 'index']
    },
  }
}